<!-- 列表排序 -->
<template>

  <div class="kkxcxzrere pr">
    <div class="cxvxtrxer vertical-center fz16"> 
      {{ row.paixu }}
    </div>
    <n-input-number  v-model:value="row.paixu" placeholder="" size="medium" @change="paissrtrt"/>
  </div>
  
  <!-- <div class="dsfdsrre" v-if="type==2">
    <i
      class="iconfont dx-jiantou_qiehuanxiangxia sz fz26"
      @click="paixu(1)"
    ></i>
    <i
      class="iconfont dx-jiantou_qiehuanxiangshang sz fz26"
      @click="paixu(2)"
    ></i>
  </div>
  <div class="dsfdsrre" v-else>
    <i
      class="iconfont dx-jiantou_qiehuanxiangxia sz fz26"
      @click="paixu(2)"
    ></i>
    <i
      class="iconfont dx-jiantou_qiehuanxiangshang sz fz26"
      @click="paixu(1)"
    ></i>
  </div> -->
</template>
 <script lang='ts' setup>
import { dxget } from "../../util/index";
const props = defineProps({
  row: { type: Object },
  type: { type: Number },
});
const emit = defineEmits(["callBack"]);
const paissrtrt = (data)=>{
console.log(data);
paixu(data)
}
const paixu = async (paixu) => {
  const { errno, data }: any = await dxget("util/changpaixu/openidpx", {
    databaseName: props.row.databaseName,//表面
    sjk:props.row.sjk, //mysql 的数据库名称  如
    openid: props.row.openid,
    paixu
  });
  if (errno == 0) {
    window.$message.success(data);
  } else {
    console.error(data);
  }
  emit("callBack");
};
</script>
 <style scoped>
.dsfdsrre i {
  color: #999;
}
.dsfdsrre i:hover {
  color: #333;
}
</style>